import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

/**
 * @author Tom
 * 
 */
public class VerwaltungTCP {

	/**
	 * @param args
	 * @throws IOException
	 * @throws UnknownHostException
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws UnknownHostException,
			IOException, InterruptedException {

		short sentence[] = new short[16];

		Socket clientSocket = new Socket("192.168.1.1", 2000);
		DataOutputStream outToServer = new DataOutputStream(
				clientSocket.getOutputStream());

		for (int i = 0; i < sentence.length; i++) {
			sentence[i] = (short) (i+155);
		}
		
		for (int i = 0; i < 5; i++) {
			
			for (int j = 0; j < sentence.length; j++) {
				outToServer.writeShort(sentence[j]);
			}

			Thread.sleep(10);
			
		}
	}

}